<?php $this->load->view('layout/header'); ?>
    <div id="container">
        <!--查询表单开始-->
        <div id="DivQuery">
            <div id="floatBoxBg" style="filter: alpha(opacity=0); opacity: 0;">
            </div>
            <div id="floatBox" class="floatBox">
                <div id="drag" class="title" onmousedown="DragDialog()">
                    <h4>
                        查询</h4>
                    <span>关闭</span></div>
                <div class="content">
                    <form action="<?php echo site_url('user/index');?>" method="post">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_query">
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                会员级别：
                            </td>
                            <td>
                                <select name="userrank">
                                    <option value="-1">不限</option>
                                    <?php foreach($userrank as $key=>$val): ?>
                                        <option value="<?php echo $val['userrankid']?>"><?php echo $val['userrankname']?></option>
                                    <?php endforeach; ?>
                                </select>
                            </td>
                            <td style="width: 15%" align="right">
                                会员账号：
                            </td>
                            <td>
                                <input type="text" name="username">
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                姓名：
                            </td>
                            <td>
                                <input type="text" name="realname">
                            </td>
                            <td style="width: 15%" align="right">
                                E-mail：
                            </td>
                            <td>
                                <input type="text" name="email">
                            </td>
                        </tr>
                        <tr class="table_query_row">
                            <td style="width: 15%" align="right">
                                是否审核：
                            </td>
                            <td>
                                <span id="radIsClose">
                                    <input id="radIsClose_0" type="radio" name="isaudit" value="-1" checked="checked" /><label for="radIsClose_0">不限</label>
                                    <input id="radIsClose_1" type="radio" name="isaudit" value="0" /><label for="radIsClose_1">开放</label>
                                    <input id="radIsClose_2" type="radio" name="isaudit" value="1" /><label for="radIsClose_2">关闭</label>
                                </span>
                            </td>
                            <td style="width: 15%" align="right">
                                状态：
                            </td>
                            <td>
                                <span id="radIsClose">
                                    <input id="radIsClose_0" type="radio" name="isclose" value="-1" checked="checked" /><label for="radIsClose_0">不限</label>
                                    <input id="radIsClose_1" type="radio" name="isclose" value="0" /><label for="radIsClose_1">开放</label>
                                    <input id="radIsClose_2" type="radio" name="isclose" value="1" /><label for="radIsClose_2">关闭</label>
                                </span>
                            </td>
                        </tr>
                        <tr class="table_query_btn">
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                                <input type="submit" value="查询" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;btnQuery&quot;, &quot;&quot;, false, &quot;&quot;, &quot;Config.aspx&quot;, false, false))" id="btnQuery" />
                                <input type="button" value="返回" onclick="javascript:HiddenSearchDialog();" />
                            </td>
                            <td align="right" style="width: 15%">
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    </form>
                </div>
            </div>
        </div>
        <!--查询表单结束-->
        <!--导航开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_nav">
            <tr>
                <td>
                    会员管理&gt;会员管理列表
                </td>
            </tr>
        </table>
        <!--导航结束-->
        <!--操作选项开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_op">
            <tr>
                <td>
                    操作选项：
                    <a href="<?php echo site_url('user/user_add');?>">添加会员</a>
                    <a onclick="javascript:return checkEdit(this);" name="userid" href="javascript:;" src="<?php echo site_url('user/user_add').'/';?>">修改会员</a>
                    <a onclick="javascript:return checkDel(this);" name="userid" href="javascript:;" src="<?php echo site_url('userid/delete_info/index/userid/user').'/';?>">删除会员</a>
                    <a onclick="javascript:return checkOperate(this);" name="userid" src="<?php echo site_url('user/edit_close/index/userid/user/0/').'/'?>" id="lbtnOpen" href="javascript:;)">批量开放</a>
                    <a onclick="javascript:return checkOperate(this);" name="userid" src="<?php echo site_url('user/edit_close/index/userid/user/1/').'/'?>" id="lbtnClose" href="javascript:;)">批量关闭</a>
                    <a onclick="javascript:return checkEdit(this);" name="userid" href="javascript:;" src="<?php echo site_url('user/audit/index/userid/user/1/').'/';?>">审核</a>
                    <a onclick="javascript:return checkEdit(this);" name="userid" href="javascript:;" src="<?php echo site_url('user/audit/index/userid/user/0/').'/';?>">取消审核</a>
                    <a href="<?php echo site_url('user/user_add_import');?>">批量导入会员</a>
                    <a href="<?php echo site_url('user/user_export');?>">批量导出会员</a>
                    <a href="<?php echo site_url('user/user_email_export');?>">批量导出Email</a>
                    <a href="javascript:SearchDialog()">查询会员</a>
                </td>
            </tr>
        </table>
        <!--操作选项结束-->
        <!--列表开始-->
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table_list" id="TbList">
            <tr class="table_list_title">
                <td style="width: 2%">
                    <input type="checkbox" name="checkbox" value="checkbox" onclick="javascript:checkAll(this,'configid')" />
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=ConfigID&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    编号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=LanguageVer&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    会员账号
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=WebsiteName&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    姓名
                </td>
                <td style="width: 10%" onclick="javascript:GoTo('?OrderKey=ListID&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    E-mail
                </td>
                <td style="width: 8%" onclick="javascript:GoTo('?OrderKey=AdminID&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    会员级别
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    积分
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    登录次数
                </td>
                <td style="width: 14%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    上次登陆时间
                </td>
                <td style="width: 14%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    本次登陆时间
                </td>
                <td style="width: 14%" onclick="javascript:GoTo('?OrderKey=AddTime&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    注册时间
                </td>
                <td style="width: 5%" onclick="javascript:GoTo('?OrderKey=IsClose&AscDesc=desc&txtWebsiteName=&radIsClose=-1&page=1')" title="点击排序">
                    状态
                </td>
            </tr>
                <?php foreach($list as $key=>$val) : ?>
                    <tr class="table_list_row_normal">
                        <td style="width: 2%">
                            <input name="userid" type="checkbox" id="userid" value="<?php echo $val['userid'];?>"  />
                        </td>
                        <td style="width: 5%" >
                            <?php echo $val['userid']?>
                        </td>
                        <td style="width: 10%" >
                            <a href="<?php echo site_url('user/user_add').'/'.$val['userid'];?>">
                                <?php echo $val['username']?>
                            </a>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $val['realname']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $val['email']?>
                        </td>
                        <td style="width: 8%" >
                            <?php echo $val['userrankname']?>
                        </td>
                        <td style="width: 5%" >
                            <?php echo $val['point']?>
                        </td>
                        <td style="width: 5%" >
                            <?php echo $val['loginnum']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $val['lastlogintime']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $val['thislogintime']?>
                        </td>
                        <td style="width: 10%" >
                            <?php echo $val['addtime']?>
                        </td>
                        <td style="width: 5%" >
                            <?php
                                if($val['isaudit'] == 0){
                                    echo '未审核';
                                }elseif($val['isaudit'] == 1){
                                    echo '已审核';
                                }
                            ?>
                            |
                            <?php 
                                if($val['isclose'] == 0){
                                    echo '开放';
                                }elseif($val['isclose'] == 1){
                                    echo '<font color="red">关闭</font>';
                                }
                            ?>
                        </td>
                    </tr>
                <?php endforeach; ?>
        </table>
        <?php $pagination->show();?>
<script src="/static/bk/js/table.js" type="text/javascript"></script>
<?php $this->load->view('layout/footer'); ?>

